/**
 * Created by kang on 2016/8/21.
 */
var express = require('express');
var router = express.Router();
var Log = require('../utils/logger');

/* GET users listing. */
router.get('/:filename', function(req, res, next) {
    var logger = Log.getLogger("download file");
    var filename = req.params.filename;
    logger.info(filename);

    res.download('./uploads/'+filename,filename);
});

module.exports = router;
